package com.lin.chapter14;

public class Client {
	public static void main(String[] args) {
		AbstractMediator mediator = new Mediator();
		Purchase purchase = mediator.getPurchase();
		Sale sale = mediator.getSale();
		Stock stock = mediator.getStock();

		System.out.println("----------采购人员采购电脑--------------");
		purchase.buyIBMcomputer(100);
		System.out.println("\n---------销售人员销售电脑---------------");
		sale.sellIBMComputer(1);
		System.out.println("\n---------库房管理人员清库处理--------------");
		stock.clearStock();
	}
}
